// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_c;

import java.util.*;

public class cls_b
{

    public cls_b()
    {
    }

    private static byte a(int i)
    {
        int j = i & 0xf;
        byte byte0;
        if(j < 10)
            byte0 = (byte)(j + 48);
        else
            byte0 = (byte)(97 + (j + -10));
        return byte0;
    }

    public static String a(String s, int i)
    {
        String s1=null;
        int j=0;
 
        {
            int k;
            if(a(s, i, "http://"))
                j = "http://".length();
            else
            if(a(s, i, "www."))
                j = "www.".length();
            else
            if(a(s, i, "wap."))
            {
                j = "wap.".length();
            } else
            {
 
                {
                    if(!a(s, i, "https://"))
                        {}
                    else
                    {
                    j = "https://".length();
                    }
                }
            }
            k = s.length();
            do
            {
                if(i + j >= k)
                    break  ;
                char c1 = s.charAt(i + j);
                if(c1 >= 'A' && c1 <= 'Z' || c1 >= 'a' && c1 <= 'z' || c1 >= '0' && c1 <= '9')
                {
                    j++;
                } else
                {
                    if("!#$%&'()*+,-./:;=?@[\\]^_`{|}~".indexOf(c1) < 0)
                        break  ;
                    j++;
                }
            } while(true);
        }
        s1 = s.substring(i, j + i);
        return s1;
       
    }

    public static String a(String s, String s1, String s2)
    {
        int i = 0;
        StringBuffer stringbuffer = new StringBuffer();
        for(int j = s.indexOf(s1, i); j >= 0; j = s.indexOf(s1, i))
        {
            stringbuffer.append(s.substring(i, j));
            stringbuffer.append(s2);
            i = j + s1.length();
        }

        if(i < s.length())
            stringbuffer.append(s.substring(i));
        return stringbuffer.toString();
    }

    public static Hashtable a(Hashtable hashtable)
    {
        Hashtable hashtable1;
        if(hashtable != null)
        {
            hashtable1 = new Hashtable();
            Object obj;
            for(Enumeration enumeration = hashtable.keys(); enumeration.hasMoreElements(); hashtable1.put(obj, hashtable.get(obj)))
                obj = enumeration.nextElement();

        } else
        {
            hashtable1 = null;
        }
        return hashtable1;
    }

    public static Vector a(String s, String s1)
    {
    	Vector vector = null;
        if(s != null && s.length() > 0 && s1 != null && s1.length() > 0) {
        	vector = new Vector();
            int i = 0;
            do
            {
                int j = s.indexOf(s1, i);
                if(j == -1)
                    break;
                if(vector == null)
                    vector = new Vector();
                vector.addElement(s.substring(i, j));
                i = j + s1.length();
            } while(true);
            if(i < s.length())
                vector.addElement(s.substring(i));
        } else {}
        
        return vector;
 
    }

    public static void a(Vector vector)
    {
        int i = 0;
        if(vector != null && vector.size() > 0)
        {
            Object aobj[] = new Object[vector.size()];
            Object aobj1[] = new Object[vector.size()];
            vector.copyInto(aobj);
            vector.copyInto(aobj1);
            a(aobj, aobj1, i, aobj.length, i);
            for(; i < aobj1.length; i++)
                vector.setElementAt(aobj1[i], i);

        }
    }

    private static void a(Object aobj[], int i, int j)
    {
        Object obj = aobj[i];
        aobj[i] = aobj[j];
        aobj[j] = obj;
    }

    private static void a(Object aobj[], Object aobj1[], int i, int j, int k)
    {
        int l = j - i;
        if(l < 7)
        {
            for(int i3 = i; i3 < j; i3++)
            {
                for(int j3 = i3; j3 > i && ((Comparable)aobj1[j3 + -1]).compareTo(aobj1[j3]) > 0; j3--)
                    a(aobj1, j3, j3 + -1);

            }

        } else
        {
            int i1 = i + k;
            int j1 = j + k;
            int k1 = i1 + j1 >> 1;
            a(aobj1, aobj, i1, k1, -k);
            a(aobj1, aobj, k1, j1, -k);
            if(((Comparable)aobj[k1 + -1]).compareTo(aobj[k1]) <= 0)
            {
                System.arraycopy(((Object) (aobj)), i1, ((Object) (aobj1)), i, l);
            } else
            {
                int l1 = k1;
                while(i < j) 
                {
                    int k2;
                    int l2;
                    if(l1 >= j1 || i1 < k1 && ((Comparable)aobj[i1]).compareTo(aobj[l1]) <= 0)
                    {
                        int i2 = i1 + 1;
                        aobj1[i] = aobj[i1];
                        int j2 = l1;
                        k2 = i2;
                        l2 = j2;
                    } else
                    {
                        l2 = l1 + 1;
                        aobj1[i] = aobj[l1];
                        k2 = i1;
                    }
                    i++;
                    i1 = k2;
                    l1 = l2;
                }
            }
        }
    }

    public static boolean a(String s)
    {
        boolean flag;
        if(s == null || s.length() == 0)
            flag = true;
        else
            flag = false;
        return flag;
    }

    public static boolean a(String s, int i, String s1)
    {
    	int k = 0;
    	boolean flag = false;
        int j = s1.length();
        if(i + j <= s.length()) {
        	while(true)
        	{
                if(k < j)
                {
                    int l = s.charAt(i + k);
                    if(l >= 65 && l <= 90)
                        l += 32;
                    if(l == s1.charAt(k))
                        break  ;
                }
                if(k == j && k > 0)
                    flag = true;
                else
                    flag = false;
                
                k++;
            }
        }
        
        return flag;
 
    }

    public static byte[] a(byte abyte0[])
    {
        byte abyte2[];
        if(abyte0 == null)
        {
            abyte2 = null;
        } else
        {
            byte abyte1[] = new byte[abyte0.length << 1];
            for(int i = 0; i < abyte0.length; i++)
            {
                abyte1[i << 1] = a(abyte0[i] >> 4);
                abyte1[1 + (i << 1)] = a(abyte0[i]);
            }

            abyte2 = abyte1;
        }
        return abyte2;
    }

    public static String b(String s)
    {
        if(s == null)
            s = "";
        return s;
    }

    public static Vector b(Hashtable hashtable)
    {
        Enumeration enumeration = hashtable.elements();
        Vector vector = new Vector();
        for(; enumeration.hasMoreElements(); vector.addElement(enumeration.nextElement()));
        return vector;
    }

    public static String c(String s)
    {
        if(!a(s) && s.toLowerCase().equals("null"))
            s = null;
        return s;
    }

    public static final String a = "utf-8";
    static final String b = "!#$%&'()*+,-./:;=?@[\\]^_`{|}~";
    private static final int c = 7;
}
